namespace KingerRobot.MexicoSailunMDC.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 生产表 - 胎胚成型
    /// </summary>
    public DbSet<POMesGreenTireBuilding> MesGreenTireBuildings { get; set; }
}

/// <summary>
/// 生产表 - 胎胚成型
/// 表[mes_green_tire_building]
/// </summary>
[Table("mes_green_tire_building")]
public class POMesGreenTireBuilding
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[mes_green_tire_building.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// 胎胚条码
    /// [mes_green_tire_building.tire_barcode)]
    /// </summary>
    [Column("tire_barcode")]
    public string TireBarcode { get; set; }
    /// <summary>
    /// 胎胚规格代号（sku）
    /// [mes_green_tire_building.material_id)]
    /// </summary>
    [Column("material_id")]
    public string MaterialId { get; set; }
    /// <summary>
    /// 成型机编号
    /// [mes_green_tire_building.product_equip)]
    /// </summary>
    [Column("product_equip")]
    public string ProductEquip { get; set; }
    /// <summary>
    /// 生产日期
    /// [mes_green_tire_building.product_time)]
    /// </summary>
    [Column("product_time")]
    public DateTime? ProductTime { get; set; }
    /// <summary>
    /// 生产批次
    /// [mes_green_tire_building.product_batch)]
    /// </summary>
    [Column("product_batch")]
    public string ProductBatch { get; set; }
    /// <summary>
    /// 胎胚锁定 0:解锁 1:锁定 
    /// [mes_green_tire_building.tire_lock)]
    /// </summary>
    [Column("tire_lock")]
    public int? TireLock { get; set; }
    /// <summary>
    /// 质量 0:合格 1:不合格
    /// [mes_green_tire_building.quailty_status)]
    /// </summary>
    [Column("quailty_status")]
    public int? QuailtyStatus { get; set; }
    /// <summary>
    /// 创建时间
    /// [mes_green_tire_building.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [mes_green_tire_building.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [mes_green_tire_building.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
}
